<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var o1={};
			o1.name='jack';
			o1['age']=18;
			o1.sayHi=function(){
				console.log('你好！');
			}
			
			console.log(o1.age);
			o1.sayHi();
			console.log(o1);
			
			
			for(var i in o1){
				console.log(i+':'+o1[i]);
			}
			console.log('gender' in o1);
		</script>
	</body>
</html>
